
* {
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #333;
  color: #222;
  overflow-x: hidden;
  margin: 0;
}

.container {
    width: 100vw;
    min-width: 100vw;
    padding: 50px;
    background-color: #fafafa;
    transform-origin: top left;
    transition: transform .5s linear;
}
/* 两个类名直接不能由空格 */
.container.show-nav {
    transform: rotate(-20deg);
}

.circle-container {
    position: fixed;
    top: -100px;
    left: -100px;
} 

.circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #ff7979;
    transition: transform 0.5s linear;
}

.container.show-nav .circle {
    transform: rotate(-70deg);
}

.circle button {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100px;
    background: transparent;
    border: 0;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

.circle button:focus {
    outline: 0;
}

.circle button#open {
    left: 60%;
  }

.circle button#close {
    top: 60%;
    transform: rotate(90deg);
    transform-origin: left top;
}

.container.show-nav+nav li {
    transform: translateX(0);
    transition-delay: 0.3s;
}

nav {
    position: fixed;
    bottom: 40px;
    left: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    padding-left: 30px;
}

/* 将ul li水平移动负距离隐藏 */
nav ul li {
    margin: 40px 0;
    color: #fff;
    transform: translateX(-100%);
    /* 文字全大写 */
    text-transform: uppercase;
    transition: transform 0.4s ease-in;
}

/* 三行li依次错开 */
nav ul li:nth-of-type(2) {
    margin-left: 15px;
    transform: translate(-150%);
}
nav ul li:nth-of-type(3) {
    margin-left: 30px;
    transform: translate(-200%);
}

.content {
    max-width: 1000px;
    margin: 50px auto;
}

.content img {
    max-width: 100%;
}

.content h1 {
    margin: 0;
  }
  
  .content small {
    color: #555;
    font-style: italic;
  }
  
  .content p {
    color: #333;
    line-height: 1.5;
  }